import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_material_machine_parameter' })
export default class BaseMaterialMachineParameter extends BaseEntity {


  @Column({ type: 'varchar', length: 50, name: 'machine_code', comment: '设备编码' })
  @ApiProperty()
  machineCode: string;

  @Column({ type: 'varchar', length: 50, name: 'material_code', comment: '产品编码' })
  @ApiProperty()
  materialCode: string;

  @Column({ type: 'varchar', length: 50, nullable: true, comment: '版本' })
  @ApiProperty()
  version: string;

  @Column({ type: 'varchar', length: 50, name: 'parameter_code', comment: '采集编码' })
  @ApiProperty()
  parameterCode: string;

  @Column({ type: 'varchar', length: 50, name: 'value' })
  @ApiProperty()
  value: string;
}
